import 'reflect-metadata'
import {INJECT_TOKENS} from './'
export function Inject(token): ParameterDecorator{
    return function (target, propertyKey, parameterIndex) {
        const existingInjectedTokens = Reflect.getMetadata(INJECT_TOKENS, target)??[]
        existingInjectedTokens[parameterIndex] = token
        Reflect.defineMetadata(INJECT_TOKENS, existingInjectedTokens, target)
    }
}